package errors

import (
	"github.com/gogf/gf/v2/errors/gcode"
)

// 用户模块错误码 (10xx)
var (
	CodeUserNotFound    = gcode.New(1001, "user not found", nil)
	CodeUserPassInvalid = gcode.New(1002, "invalid username or password", nil)
	CodeUserDisabled    = gcode.New(1003, "user disabled", nil)
	CodeUserExists      = gcode.New(1004, "user exists", nil)
	CodeUserLogin       = gcode.New(1005, "登录身份已失效，请重新登录！", nil)
	CodeUserMultiLogin  = gcode.New(1006, "账号已在其他地方登录，如非本人操作请及时修改登录密码！", nil)
	CodeInvalidToken    = gcode.New(1011, "invalid token", nil)
	CodeTokenExpired    = gcode.New(1012, "token expired", nil)
)
